import request from '@/utils/request'

// 查询数据接口配置列表
export function listDataInterface(query) {
  return request({
    url: '/basic/dataInterface/list',
    method: 'get',
    params: query
  })
}

// 查询数据接口配置详细
export function getDataInterface(id) {
  return request({
    url: '/basic/dataInterface/' + id,
    method: 'get'
  })
}

// 新增数据接口配置
export function addDataInterface(data) {
  return request({
    url: '/basic/dataInterface',
    method: 'post',
    data: data
  })
}

// 修改数据接口配置
export function updateDataInterface(data) {
  return request({
    url: '/basic/dataInterface',
    method: 'put',
    data: data
  })
}

// 删除数据接口配置
export function delDataInterface(id) {
  return request({
    url: '/basic/dataInterface/' + id,
    method: 'delete'
  })
}

// 导出数据接口配置
export function exportDataInterface(query) {
  return request({
    url: '/basic/dataInterface/export',
    method: 'get',
    params: query
  })
}